package com.match.entity.baseEntity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author AdiosF
 * @since 2021-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Student对象", description="")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "学生学号")
    private String number;

    @ApiModelProperty(value = "学生姓名")
    private String name;

    @ApiModelProperty(value = "登陆密码")
    private String password;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "学生系别")
    private String lever;

    @ApiModelProperty(value = "年级")
    private String grade;

    @ApiModelProperty(value = "学生角色")
    private String role;

    @ApiModelProperty(value = "学生头像")
    private String avatar;

    @ApiModelProperty(value = "班级名称")
    private String classNam;

    @ApiModelProperty(value = "专业代码")
    private String majorNum;

    @ApiModelProperty(value = "专业名称")
    private String majorNam;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "实际学分")
    @TableField(exist = false)
    private Integer studentCredit;

    @ApiModelProperty(value = "是否获奖")
    @TableField(exist = false)
    private Integer isorReplace;

    @ApiModelProperty(value = "未激活0，已激活 1")
    private Integer state;

    @ApiModelProperty(value = "记录学生参赛数")
    private Integer counterNumber;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean isDeleted;
}
